package com.itheima.mapper;

import com.itheima.common.entity.QueryPageBean;
import com.itheima.pojo.CheckGroup;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CheckGroupMapper {


    void addCheckGroup(CheckGroup checkGroup);

    void addCheckGroupAndCheckItem(Integer checkgroupId, Integer checkitemId);

    void deleteById(Integer id);

    List<Integer> findCheckGroupIdsBySetmealId(Integer setmealId);

    List<CheckGroup> findPage(QueryPageBean queryPageBean);

    void edit(CheckGroup checkGroup);

    void updateCheckgroupByCheckItemId(Integer checkGroupId, Integer checkItemId);

    void deleteByIdFromCheckGroupAndCheckItem(Integer id);

    void deleteByIdFromCheckGroupAndSetmeal(Integer id);

    List<CheckGroup> findAll();

    CheckGroup findById(int i);
}
